<?php
namespace app\common\validate;

use think\Validate;

class Comment extends Validate
{
    protected $rule = [
       'type' => 'require|in:1,2,3',
       'foreign_key' => 'require',
       'content' => 'require|max:100'
    ];
    protected $message = [
       'type.require' => '参数type丢失',
       'type.in' => '参数type错误',
       'foreign_key.require' => '参数foreign_key丢失',
       'content.max' => '评论内容不得超过100个字符',
       'content.require' => '请输入评论内容',
      
    ];
    protected $scene = [
       
    ];
}
